const moment = require('moment')

module.exports = {
  "title": "Yoke阅览室",
  "description": "Enjoy when you can, and endure when you must.",
  "dest": "public",
  "head": [
    [
      "link",
      {
        "rel": "icon",
        "href": "/logo.png"
      }
    ],
    [
      "meta",
      {
        "name": "viewport",
        "content": "width=device-width,initial-scale=1,user-scalable=no"
      }
    ],
    [
      'script',
      {
        src:'https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js'
      }
    ],
    [
      'script',
      {
        src:'script/MouseClickEffect.js'
      }
    ],
    [
      'script',
      {
        src:'script/snow.js'
      }
    ]
  ],
  "theme": "reco",
  "plugins":[
    [
      'vuepress-plugin-helper-live2d', {
        // 是否开启控制台日志打印(default: false)
        log: false,
        live2d: {
          // 是否启用(关闭请设置为false)(default: true)
          enable: true,
          // 模型名称(default: hibiki)
          model: 'koharu',
          display: {
            position: "right", // 显示位置：left/right(default: 'right')
            width: 135, // 模型的长度(default: 135)
            height: 300, // 模型的高度(default: 300)
            hOffset: 65, //  水平偏移(default: 65)
            vOffset: 0, //  垂直偏移(default: 0)
          },
          mobile: {
            show: false // 是否在移动设备上显示(default: false)
          },
          react: {
            opacity: 0.8 // 模型透明度(default: 0.8)
          }
        }
      }
    ],
    [
      "dynamic-title",
      {
        showIcon: "/logo.png",
        showText: "！*★,°*:.☆(￣▽￣)/$:*.°★* 。",
        hideIcon: "/logo.png",
        hideText: "_____λ......___丬 别走啊～～",
        recoverTime: 2000
      }
    ],
    ['@vuepress-reco/comments', {
      solution: 'valine',
      options: {
        appId: 'iOcPOwy7SUhydpm6OzHsA8YR-gzGzoHsz',
              appKey: '6coStr0lqWvNNJYVwq52sw9n',
              avatar:'wavatar', //头像样式
              visitor:true,    //文章访问量统计。
              recordIP:true,   //记录ip地址
                // 设置Bilibili表情包地址
                emojiCDN: '//i0.hdslb.com/bfs/emote/', 
                // 表情title和图片映射
                emojiMaps: {
                    "tv_doge": "6ea59c827c414b4a2955fe79e0f6fd3dcd515e24.png",
                    "tv_亲亲": "a8111ad55953ef5e3be3327ef94eb4a39d535d06.png",
                    "tv_偷笑": "bb690d4107620f1c15cff29509db529a73aee261.png",
                    "tv_再见": "180129b8ea851044ce71caf55cc8ce44bd4a4fc8.png",
                    "tv_冷漠": "b9cbc755c2b3ee43be07ca13de84e5b699a3f101.png",
                    "tv_发怒": "34ba3cd204d5b05fec70ce08fa9fa0dd612409ff.png",
                    "tv_发财": "34db290afd2963723c6eb3c4560667db7253a21a.png",
                    "tv_可爱": "9e55fd9b500ac4b96613539f1ce2f9499e314ed9.png",
                    "tv_吐血": "09dd16a7aa59b77baa1155d47484409624470c77.png",
                    "tv_呆": "fe1179ebaa191569b0d31cecafe7a2cd1c951c9d.png",
                    "tv_呕吐": "9f996894a39e282ccf5e66856af49483f81870f3.png",
                    "tv_困": "241ee304e44c0af029adceb294399391e4737ef2.png",
                    "tv_坏笑": "1f0b87f731a671079842116e0991c91c2c88645a.png",
                    "tv_大佬": "093c1e2c490161aca397afc45573c877cdead616.png",
                    "tv_大哭": "23269aeb35f99daee28dda129676f6e9ea87934f.png",
                    "tv_委屈": "d04dba7b5465779e9755d2ab6f0a897b9b33bb77.png",
                    "tv_害羞": "a37683fb5642fa3ddfc7f4e5525fd13e42a2bdb1.png",
                    "tv_尴尬": "7cfa62dafc59798a3d3fb262d421eeeff166cfa4.png",
                    "tv_微笑": "70dc5c7b56f93eb61bddba11e28fb1d18fddcd4c.png",
                    "tv_思考": "90cf159733e558137ed20aa04d09964436f618a1.png",
                    "tv_惊吓": "0d15c7e2ee58e935adc6a7193ee042388adc22af.png",
                    // ... 更多表情
                },
                enableQQ:true,  //是否启用昵称框自动获取QQ昵称和QQ头像,
                placeholder:'请发表您的意见吧。。。。',
                avatarForce:true
      }
    }],
    [
      "ribbon-animation",
      {
         size: 90, // 彩带的宽度，默认为 90
         opacity: 0.8, // 彩带的不透明度，默认为 0.3
         zIndex: -1, // 彩带的 z-index 属性，默认值为 -1
         opt: {
          // 色带HSL饱和度
          colorSaturation: "80%",
          // 色带HSL亮度量
          colorBrightness: "60%",
          // 带状颜色不透明度
          colorAlpha: 0.65,
          // 在HSL颜色空间中循环显示颜色的速度有多快
          colorCycleSpeed: 6,
          // 从哪一侧开始Y轴 (top|min, middle|center, bottom|max, random)
          verticalPosition: "center",
          // 到达屏幕另一侧的速度有多快
          horizontalSpeed: 200,
          // 在任何给定时间，屏幕上会保留多少条带
          ribbonCount: 2,
          // 添加笔划以及色带填充颜色
          strokeSize: 0,
          // 通过页面滚动上的因子垂直移动色带
          parallaxAmount: -0.5,
          // 随着时间的推移，为每个功能区添加动画效果
          animateSections: true
        },
        ribbonShow: false, //  点击彩带  true显示  false为不显示
        ribbonAnimationShow: true  // 滑动彩带
      }
    ],
    ["@vuepress-reco/vuepress-plugin-pagation"],
    ['vuepress-plugin-code-copy', true],
    [
      '@vuepress/last-updated',
      {
        transformer: (timestamp, lang) => {
          moment.locale(lang)
          return moment(timestamp).utcOffset(480).format('YYYY/MM/DD, HH:mm:ss');
        }
      }
    ],
    ['@vuepress/pwa', {
      serviceWorker: true,
      updatePopup: {
          message: "发现新内容可用",
          buttonText: "刷新"
      }
  }],
    require('./plugins/musicPlayer/index'),
  ],
  "themeConfig": {
    "nav": [
      {
        "text": "主页",
        "link": "/",
        "icon": "reco-home"
      },
      {
        "text": "时间线",
        "link": "/timeline/",
        "icon": "reco-date"
      },
      {
        "text": "Docs",
        "icon": "reco-message",
        "items": [
          {
            "text": "vuepress-reco",
            "link": "/docs/theme-reco/"
          }
        ]
      },
      {
        "text": "联系我",
        "icon": "reco-message",
        "items": [
          {
            "text": "码云",
            "link": "https://gitee.com/DingMY2016/yoke_blod",
            "icon": "reco-mayun"
          }
        ]
      },
      {
        "text":'QQ登录',
        "icon":"reco-qq",
        "link":"https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=101948749&redirect_uri=http://www.daewoo.host/a&state=1&scope=get_user_info,get_info"
      }
    ],
    "sidebar": {
      "/docs/theme-reco/": [
        "",
        "theme",
        "plugin",
        "api"
      ]
    },
    "type": "blog",
    "blogConfig": {
      "category": {
        "location": 2,
        "text": "分类"
      },
      "tag": {
        "location": 3,
        "text": "标签"
      }
    },
    "friendLink": [
      {
        "title": "午后南杂",
        "desc": "Enjoy when you can, and endure when you must.",
        "email": "1156743527@qq.com",
        "link": "https://www.recoluan.com"
      },
      {
        "title": "vuepress-theme-reco",
        "desc": "A simple and beautiful vuepress Blog & Doc theme.",
        "avatar": "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
        "link": "https://vuepress-theme-reco.recoluan.com"
      }
    ],
    "logo": "/logo.png",
    "search": true,
    "searchMaxSuggestions": 10,
    "lastUpdated": "最后更新时间",
    "author": "Yoke",
    "authorAvatar": "/logo.png",
    "record": "xxxx",
    "startYear": "2017",
    "codeTheme":'tomorrow',
    "subSidebar": true
  },
  "markdown": {
    "lineNumbers": true
  }
}


/**
 * https://valine.js.org/configuration.html 配置文件
 * 添加评论平台
 * https://console.leancloud.cn/apps/iOcPOwy7SUhydpm6OzHsA8YR-gzGzoHsz/storage/data/Comment
 * 用户名：yoke0104x
 * 密码：Dm0104x.
 * 主题可能修改为：vuepress-theme-reco
 */